package com.ysd.twocrm.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

//用户模块表（中间表）
@TableName("rolemodules")
public class RoleModules {
    @TableId(value = "roleModulesId",type = IdType.AUTO)
    private Integer roleModulesId;//用户模块id

    private Integer modulesId;//模块编号

    private Integer roleId;//角色编号

    public RoleModules(Integer roleModulesId, Integer modulesId, Integer roleId) {
        this.roleModulesId = roleModulesId;
        this.modulesId = modulesId;
        this.roleId = roleId;
    }

    @Override
    public String toString() {
        return "RoleModules{" +
                "roleModulesId=" + roleModulesId +
                ", modulesId=" + modulesId +
                ", roleId=" + roleId +
                '}';
    }

    public Integer getRoleModulesId() {
        return roleModulesId;
    }

    public void setRoleModulesId(Integer roleModulesId) {
        this.roleModulesId = roleModulesId;
    }

    public Integer getModulesId() {
        return modulesId;
    }

    public void setModulesId(Integer modulesId) {
        this.modulesId = modulesId;
    }

    public Integer getRoleId() {
        return roleId;
    }

    public void setRoleId(Integer roleId) {
        this.roleId = roleId;
    }

    public RoleModules() {
        super();
    }


}
